package com.es.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.es.common.cache.CacheStoreFactory;
import com.es.common.cache.redis.RedisShardCacheFactory;

@Configuration
public class CacheConfig {
	
	@Bean("cacheFactory")
	public CacheStoreFactory getCacheStoreFactory(){
		CacheStoreFactory factory = new RedisShardCacheFactory();
		return factory;
	}

}
